﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ExpertMIS.UserControl
{
    public partial class ucWebTitle : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (ExpertMIS.Codes.Utility.GetEnvironment().Logon)
            {
                lblUserStatus.Text = string.Format("欢迎您，<a href='{0}'>{1}</a>", ResolveUrl("~/Workships/Default.aspx"), ExpertMIS.Codes.Utility.GetCurrentUsername());
            }
            else
            {
                lblUserStatus.Text = "欢迎您，游客";
            }
        }
    }
}